package com.gr100.biz.app.res;

import cn.dreampie.route.core.annotation.API;
import cn.dreampie.route.core.annotation.GET;
import cn.dreampie.route.core.annotation.POST;
import com.gr100.biz.api.user.UserService;

import java.util.Map;

/**
 * Created by YFsoft on 16/3/14.
 */

@API("/user")
public class UserResource extends ApiResource {


    UserService _userService = new UserService();

    @GET("/signin")
    public String signin(String login_name,String login_pass,String type,String unionID){
        Map<String,Object> result = _userService.signin(type,login_name,login_pass,unionID);
        return this.echo(result);
    }

    @GET("/signup")
    public String signup(String login_name,String login_pass,String type,String unionID){
        Map<String,Object> result = _userService.signup(type, login_name, login_pass, login_pass,unionID);
        return this.echo(result);
    }
}
